@import "../../assets/animation.scss";

.page {
  background-color: #f4f4f4;
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0px;
  overflow: hidden;
  top: 0px;
  transition: all 600ms ease;
  z-index: 0;

  .photo-swiper {
    overflow: auto;
    width: 100%;
    height: 100%;
    left: 0px;
    right: 0px;
    position: fixed;

    .photo-item {
      align-items: center;
      display: flex;
      justify-content: center;
      .photo-wrap {
        border: 20px solid #FFFFFF;
        box-shadow: 6px 6px 8px rgba(50, 50, 50, 0.4);
        width: 500px;
        height: fit-content;
        .photo {
          display: block;
          width: 100%;
        }
      }
    }
  }

  .full-screen {
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    position: fixed;

    .photo-wall {
      display: flex;
      padding: 16px;
      .row {
        flex: 1;
        padding: 0px 8px;
        .photo-wrap {
          border: 20px solid #FFFFFF;
          box-shadow: 6px 6px 8px rgba(50, 50, 50, 0.4);
          width: 100%;
          margin-bottom: 16px;
          .photo {
            display: block;
            width: 100%;
          }
        }
        &:first-child {
          padding-left: 0px;
        }
        &:last-child {
          padding-right: 0px;
        }
      }
    }
  }

  &.rotate-reverse {
    opacity: 1;
    transform-origin: left bottom;
    transition-delay: 100ms;
    &.leave {
      opacity: 0;
      transition-delay: 0ms;
      transform: rotate(-90deg);
    }
  }
  &.rotate {
    opacity: 1;
    transform-origin: right bottom;
    transition-delay: 100ms;
    &.leave {
      opacity: 0;
      transition-delay: 0ms;
      transform: rotate(90deg);
    }
  }
}

.btn-wrap {
  display: flex;
  position: fixed;
  width: 300px;
  height: 50px;
  top: 40px;
  right: 30px;
  transition: opacity 500ms ease;
  z-index: 1;
  .btn {
    align-items: center;
    box-shadow: 3px 3px 4px rgba(50, 50, 50, 0.2);
    display: flex;
    font-size: 24px;
    flex: 1;
    justify-content: center;
    margin: 0px 2px;
    &.btn-primary {
      background-color: #ffffff;
      color: #333333;
    }
    &.btn-danger {
      background-color: #FB335D;
      color: #ffffff;
    }
    &:first-child {
      margin-left: 0px;
    }
    &:last-child {
      margin-right: 0px;
    }
  }
  &.transparent {
    opacity: 0.2;
  }
}

.switch-wrap {
  display: flex;
  height: 100%;
  .switch {
    align-items: center;
    display: flex;
    width: 140px;
    height: 100%;
    justify-content: center;
    position: relative;

    &.active {
      color: #FB335D;
      font-weight: bold;
      &:after {
        background-image: linear-gradient(270deg, #FF5747 0%, #FB335D 97%);
        border-radius: 3px;
        bottom: 0px;
        content: " ";
        display: block;
        position: absolute;
        left: 50%;
        width: 56px;
        height: 6px;
        transform: translateX(-50%);
        position: absolute;
      }
    }
  }
}